import 'dart:typed_data';

import 'package:bluetooth_protocols_plugin/src/base/data_base.dart';

// 实时电池信息基类
abstract class RealtimeBatteryInfoBase<T extends BatteryPackInfoBase>
    extends DataBase {
  // 最小长度
  int get minLength;

  // 电池包数量
  int get batteryPacksCount;

  // 电池包列表
  List<T> get batteryPacks;

  // 电池信息
  RealtimeBatteryInfoBase.fromBytes(Uint8List bytes);
}

// 电池包信息基类
abstract class BatteryPackInfoBase extends DataBase {
  // 字节长度
  int get bytesLength;

  BatteryPackInfoBase.fromBytes(Uint8List bytes);
}
